Skip to contentSkip to conversation

Enable framerate capping

Bug 109763 [email protected] 1 participant 16 messages Feb 24, 2019 – Sep 25, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=109763

Bug ID: 109763
Summary: [radeonsi] Enable framerate capping
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

It can be beneficial to enable framerate capping, to reduce power consumption and hardware wear out in case when user can be satisfied with certain max framerate.

There is a similar DRI bug: https://bugs.freedesktop.org/show_bug.cgi?id=100389
But not sure what the right place is for such capping to occur, so opening one for radeonsi.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=109763

--- Comment #1 from [email protected] ---
Created attachment 143515
--> https://bugs.freedesktop.org/attachment.cgi?id=143515&action=edit
a simple python app for the amdgpu sysfs API

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109763

--- Comment #2 from [email protected] ---
You can use a selected engine clock range to lower performance. You can use my python app for that.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109763

--- Comment #3 from Shmerl <[email protected]> ---
That's not really the same as hard limiting the framerate, though can be useful as well.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109763

--- Comment #4 from [email protected] ---
Many games have a built in frame rate limiter. Your GPU will not wear if temperatures are OK. Increase cooling in your computer case. There is no sense to duplicate features that are in games or can be solved otherwise. The amgpu driver code is complex already.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109763

--- Comment #5 from Shmerl <[email protected]> --- (In reply to fin4478 from comment #4)

Quoted 1 line

Many games have a built in frame rate limiter.

This is obviously intended for those which don't have it (which are many as well).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109763

--- Comment #6 from smoki <[email protected]> ---

Shmerl i guess wants something in driver like AMD FRTC:

https://www.amd.com/en/technologies/frtc

So not to use something external like libstrangle:

https://gitlab.com/torkel104/libstrangle

That could limit framerate for most of GL or VK apps.

For Nine and D3D9 games under WINE one could use this d3d9-wrapper:

https://github.com/ThirteenAG/d3d9-wrapper

Both could be used by (if possible) just dropping wrapper in game dir and set
what you want via variables, config file, etc...

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109763

--- Comment #7 from Shmerl <[email protected]> --- (In reply to smoki from comment #6)

Quoted 6 lines

Shmerl i guess wants something in driver like AMD FRTC:

https://www.amd.com/en/technologies/frtc

So not to use something external like libstrangle:

Yes, something built into radeonsi (and radv) would be nice. Limiting it by GPU clocks isn't really the same, as in "limit it with not exceeding 80 fps" for example.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109763

--- Comment #8 from smoki <[email protected]> ---

Just say, i wanna something like AMD FRTC for non FreeSync users and something
like AMD Chill for FreeSync users :D

Both these could caps framerate just in a different enviroments and this is
where this become complicated as it depends what kind of screen you have these days. If you are VRR capable you wanna something like Chill, otherwise FRTC :D

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109763

--- Comment #9 from Shmerl <[email protected]> ---
I suppose both use cases are important, since there are monitors with and without FreeSync support.

I haven't used AMD on Windows (or their closed driver or Linux), so I was not familiar with Chill and FRTC. But yes, that's exactly what this is about.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109763

--- Comment #10 from Shmerl <[email protected]> ---
If I understand correctly, Chills is doing some dynamic implicit framerate management, which can be useful too, but it would be good to have a hard limit option as well.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109763

--- Comment #11 from smoki <[email protected]> ---

I guess that Chill is what people wants actually, as FRTC-like one can do
already via mentioned wrappers anyway.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109763

--- Comment #12 from Shmerl <[email protected]> ---

Quoted 1 line

From what gathered, wrappers like libstrangle aren't working consistently

(especially for radv), so having even such minimal limiting upstream would already useful.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109763

Kristoffer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #13 from Kristoffer <[email protected]> ---
I believe Chill might be encumbered by patents so I'm not sure an open source implementation is legally possible.

https://patents.google.com/patent/US20080055318A1/

It's also quite a bit more complicated than a static framerate limiter, requiring monitoring of on-screen movement and input events to constantly evaluate what framerate is appropriate in each moment.

A static framerate limiter would be nice though, but we already have libstrangle for that which works well most of the time.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109763

--- Comment #14 from Shmerl <[email protected]> --- (In reply to Kristoffer from comment #13)

Quoted 11 lines

I believe Chill might be encumbered by patents so I'm not sure an open source implementation is legally possible.

https://patents.google.com/patent/US20080055318A1/

It's also quite a bit more complicated than a static framerate limiter, requiring monitoring of on-screen movement and input events to constantly evaluate what framerate is appropriate in each moment.

A static framerate limiter would be nice though, but we already have libstrangle for that which works well most of the time.

I'd day better to have it upstream than separate, besides it's not always working, especially for Vulkan.

In regards to patents, that's something that always can happen - you can never be sure. If you are worried about that specific one from AMD, AMD can be contacted about it. After all it's in their interest not to cause troubles to Linux graphics stack.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=109763

GitLab Migration User <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #15 from GitLab Migration User <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1374.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel